<template>
  <div class="error-content">
    <div class="error-box">
      <img :src="src" :alt="code">
      <div class="text-con">
        <h4>{{ code }}</h4>
        <h5>{{ desc }}</h5>
      </div>
      <div class="mt-10">
        <back-btn-group class="back-btn-group" />
      </div>
    </div>
  </div>
</template>
<script>
import backBtnGroup from './back-btn-group'
export default {
  name: 'ErrorContent',
  components: {
    backBtnGroup
  },
  props: {
    code: String,
    desc: String,
    src: String
  },
  data() {
    return {}
  },
  methods: {
    backHome() {
      this.$router.replace('/index')
    },
    backPrev() {
      this.$router.go(-1)
    }
  }
}
</script>
<style lang="stylus" scoped>
.error-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 100vh;
  background: #f8f8f9
}
</style>
